<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="cookie.js"></script>
</head>
<body>
<script>
console.log(docCookies);
//设置，写
docCookies.setItem('num',10);
docCookies.setItem('num2',20);
</script>
</body>
</html>